/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 768px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    position: relative;
}

/* 顶部导航栏样式 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-back {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.header-right {
    width: 24px;
}

/* 主内容区域 */
.main-content {
    padding-bottom: 20px;
}

/* 广告横幅样式 */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #e8f5e9;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.banner-text {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #333;
}

.banner-text h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.banner-text p {
    font-size: 16px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.banner-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.banner-btn::after {
    content: "▶";
    margin-left: 5px;
    font-size: 12px;
}

/* 功能导航图标样式 */
.function-nav {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
}

.function-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: white;
    font-size: 24px;
}

.function-icon.blue {
    background-color: #4285f4;
}

.function-icon.purple {
    background-color: #9c27b0;
}

.function-icon.red {
    background-color: #f44336;
}

.function-icon.pink {
    background-color: #e91e63;
}

.function-icon.green {
    background-color: #4caf50;
}

.function-icon.cyan {
    background-color: #00bcd4;
}

.function-icon.yellow {
    background-color: #ffeb3b;
    color: #333;
}

.function-item span {
    font-size: 12px;
    color: #666;
}

/* 优惠活动区域样式 */
.promotion {
    padding: 15px;
    background-color: #fff;
    margin-bottom: 10px;
}

.promotion-banner {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e0f7fa;
    display: flex;
    align-items: center;
}

.promotion-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promotion-text {
    position: absolute;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.promotion-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: #009688;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.promotion-text p {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.promotion-btn {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

/* 新人专区样式 */
.new-user {
    padding: 15px;
    background-color: #fff;
    margin-bottom: 10px;
}

.new-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.new-user-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.new-user-link {
    font-size: 14px;
    color: #999;
}

.new-user-subtitle {
    font-size: 14px;
    color: #666;
}

/* 底部广告样式 */
.bottom-banner {
    display: flex;
    padding: 15px;
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}

.bottom-banner-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-banner-left p {
    font-size: 16px;
    font-weight: 600;
    color: #c2185b;
    text-align: center;
}

.bottom-banner-right {
    display: flex;
    align-items: center;
}

.bottom-banner-right img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 10px;
    object-fit: cover;
}

.bottom-banner-text {
    display: flex;
    flex-direction: column;
}

.bottom-banner-text p:first-child {
    font-size: 12px;
    color: #333;
}

.bottom-banner-text p:last-child {
    font-size: 14px;
    font-weight: 700;
    color: #c2185b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }

    .banner-text h2 {
        font-size: 20px;
    }

    .banner-text p {
        font-size: 14px;
    }

    .function-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .promotion-banner {
        height: 100px;
    }

    .promotion-text h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .banner-text {
        top: 15px;
        left: 15px;
    }

    .banner-text h2 {
        font-size: 18px;
    }

    .function-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .function-item span {
        font-size: 11px;
    }

    .promotion-banner {
        height: 90px;
    }

    .promotion-text h3 {
        font-size: 20px;
    }

    .promotion-text p {
        font-size: 12px;
    }
}